package com.jprocms.module.cms.controller.admin.mail.vo;

import com.jpro.framework.common.validation.InEnum;
import com.jprocms.module.cms.enums.EmailSceneEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Schema(description = "邮箱验证码的发送 Request DTO")
@Data
public class EmailCodeSendReqDTO {

    @Schema(description = "邮箱", required = true, example = "1588888888")
    @NotEmpty(message = "邮箱不能为空")
    private String email;

    @Schema(description = "发送场景", required = true, example = "1")
    @NotNull(message = "发送场景不能为空")
    @InEnum(EmailSceneEnum.class)
    private Integer scene;


    @NotNull(message = "图形验证码不能为空")
    @Schema(description = "图形验证码")
    private String captchaVerification;

}
